package cloud.shyidong.commerce.request;

import cloud.shyidong.core.request.SimpleInsertRequest;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * <p>
 * 电商商品添加请求
 * </p>
 *
 * @author syd
 * @since 2023-09-18 15:34:23
 */
@Data
public class CommerceGoodsInsertRequest extends SimpleInsertRequest {
    
    /**
     * 租户ID
     */
    private Long tenantId;
    
    /**
     * 商品分类ID
     */
    private Long categoryId;
    
    /**
     * 名称
     */
    private String name;
    
    /**
     *
     */
    private String displayName;
    
    /**
     * 价格
     */
    private BigDecimal price;
    
    /**
     * 图片文件
     */
    private String images;
    
    /**
     *
     */
    @NotNull(message = "缺少排序")
    private Integer sortIndex;
    
    /**
     *
     */
    private String remark;
    
    
}
